﻿using System.Collections.ObjectModel;
using Coniometer.Model;
using Prism.Mvvm;

namespace Coniometer.ViewModels
{
    public class AuditTrailPageViewModel : BindableBase
    {
        private ObservableCollection<OperationModel> _operationCollection = new ObservableCollection<OperationModel>();

        public ObservableCollection<OperationModel> OperationCollection
        {
            get => _operationCollection;
            set
            {
                _operationCollection = value;
                RaisePropertyChanged();
            }
        }

        public AuditTrailPageViewModel()
        {
            for (var i = 1; i < 15; i++)
            {
                var dataModel = new OperationModel
                {
                    IsSelected = true,
                    CreateTime = "2019/05/01 09:00:00",
                    Operator = "hiuojoijki",
                    Action = "查看详情",
                    Content = "创建SOP方案，方案名称：方案1"
                };
                OperationCollection.Add(dataModel);
            }
        }
    }
}